projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c03745
)
tests: Fix testappchooser test
author
Alexander Mikhaylenko
<alexm@gnome.org>
Sun, 10 May 2020 21:46:28 +0000
(
02:46
+0500)
committer
Alexander Mikhaylenko
<alexm@gnome.org>
Sun, 10 May 2020 21:47:40 +0000
(
02:47
+0500)
Don't assume GtkWindow is a container.
tests/testappchooser.c
patch
|
blob
|
history
diff --git
a/tests/testappchooser.c
b/tests/testappchooser.c
index 82eda9d4ca5f14bd9d786aff66dec05797d914e8..7735cdec80612c2cdd6b2df24ad977d1c4ac8d40 100644
(file)
--- a/
tests/testappchooser.c
+++ b/
tests/testappchooser.c
@@
-230,7
+230,7
@@
main (int argc, char **argv)
g_signal_connect (open, "clicked",
G_CALLBACK (display_dialog), NULL);
- gtk_
container_add (GTK_CONTAINER
(toplevel), grid);
+ gtk_
window_set_child (GTK_WINDOW
(toplevel), grid);
gtk_widget_show (toplevel);
g_signal_connect (toplevel, "destroy", G_CALLBACK (quit_cb), &done);